{% extends "kore2columns.html" %}

{% load comments %}
{% load multimedia_extras %}


{% block javascript %}

 <script type="text/javascript" src="{{ MEDIA_URL }}js/tiny_mce/tiny_mce.js"></script>
 <script type="text/javascript" src="{% url tinymce-js "comments" %}"></script>

{% endblock %}

{% block main-content %}	


<h2><a href="{% url blog-detail object.id %}">{{ object.title }}</a></h2>

<p class="subtitle">{{ object.date|date:"l d F Y" }}, <i>{{ object.category }}</i></p>

{% if object.image %}
<img src="{% thumbnail object.image 200 160 %}" class="post-image"/>
{% endif %}

{% autoescape off %}
{{ object.text }}
{% endautoescape %}

{% if object.artist_set.all %}

<p>
	{% for artist in object.artist_set.all %}
		<a href="{% url artist-posts artist.id %}"> {% if artist.image %}<img alt="{{ artist.name }}" title="{{ artist.name }}" class="small-sticker" src="{% thumbnail artist.image 80 80 %}" />{% else %}<img src="{{ MEDIA_URL }}static/img/default_profile.jpg" width="80" alt="{{ artist.name }}" title="{{ artist.name }}" class="small-sticker"  />{% endif %}</a>
	{% endfor %}
</p>
{% endif %}


<div style="clear:both"></div>

{% get_comment_list for object as comment_list %}
{% if comment_list %}
<h2><a name="comments">Commentaires</a></h2>
{% for comment in comment_list %}
<div class="comment">
<div class="comment-top">
<p><b>{{ comment.name }}</b><br /><span class="soft">{{ comment.submit_date|date:"l d F Y" }}</span></p>
</div>
<div class="comment-body">
{% autoescape off %}
{{ comment.comment }}
{% endautoescape %}
</div>
</div>
{% endfor %}
{% endif %}


{% ifequal object.id 46 %}
{% else %}

{% ifequal object.id 27 %} 
{% else %}
<h3>Laisser un commentaire</h3>

{% get_comment_form for object as form %}
<form action="{% comment_form_target %}" method="POST">
{% csrf_token %}
  <table>
  <tr><td>{{ form.name.label }}</td><td>{{ form.name }}</td></tr>
  <tr><td>{{ form.email.label }}</td><td>{{ form.email }}</td></tr>
  <tr><td>{{ form.url.label }}</td><td>{{ form.url }}</td></tr>
  <tr><td>{{ form.comment.label }}</td><td>{{ form.comment }}</td></tr>
  <tr style="display: none;"><td>{{ form.honeypot.label }}</td><td>{{ form.honeypot }}</td></tr>
  <tr>
  <td></td>
  <td>
    <input type="submit" name="post" class="submit-post" value="Post" />
    <!-- <input type="submit" name="preview" class="submit-preview" value="Preview" /> -->
  </td>
  </tr>
  
  </table>
  {{ form.content_type }}
  {{ form.object_pk }}
  {{ form.timestamp }}
  {{ form.security_hash }}
  <input type="hidden" name="next" value="{{ object.get_absolute_url }}" />
</form>
{% endifequal %}

{% endifequal %}

</div>

</div>





{% endblock %}
